package com.ziq.base.base

import android.app.Application
import com.tencent.mmkv.MMKV
import com.ziq.base.base.hilt.GlobalConfigModule
import com.ziq.base.manager.FrescoManager
import com.ziq.base.utils.LogUtil
import javax.inject.Inject

open class BaseApplication : Application(){

    @Inject
    lateinit var globalConfigModule: GlobalConfigModule

    override fun onCreate() {
        super.onCreate()
        initApplication()
    }

    open fun initApplication(){
        LogUtil.init(this, globalConfigModule.isDebug)
        FrescoManager.init(this)
        MMKV.initialize(this)
    }

}